package main

import (
	"fmt"
	"strconv"
	"strings"
)

func getVersion(version string) string {
	versionList := strings.Split(version, ".")
	First, _ := strconv.Atoi(versionList[0])
	Second, _ := strconv.Atoi(versionList[1])
	Third, _ := strconv.Atoi(versionList[2])
	if Third == 99 {
		if Second == 99 {
			First += 1
			Second = 0
			Third = 0
		} else {
			Second += 1
			Third = 0
		}
	} else {
		Third += 1
	}
	return fmt.Sprintf("%d.%d.%d", First, Second, Third)

}
func main() {
	fmt.Println(getVersion("2.99.99"))
}
